約 4,057,565 件
https://w.atwiki.jp/aerocats/pages/35.html
玄箱PROの初期状態 玄箱PROの通信設定に関する初期設定を記す。 外部と接続する仕組みで挙げたファイルに加え以下のファイルが基本的な通信の設定の役割を持っている。 /etc/hosts /etc/resolv.conf /etc/nsswitch.conf /etc/netinfo それぞれが、玄箱PROの標準Linuxでどのような初期設定になっているのかを記録する。 /etc/hosts ~ # cat /etc/hosts 127.0.0.1 localhost.localdomain localhost 192.168.1.9 KUROBOX-PRO /etc/resolv.conf ~ # cat /etc/resolv.conf nameserver 192.168.1.1 /etc/nsswitch.conf ~ # cat /etc/nsswitch.conf hosts files /etc/netinfo ~ # cat /etc/netinfo my_ipaddress=dhcp my_subnetmask= my_dgw=
https://w.atwiki.jp/aerocats/pages/3.html
タグ一覧 標準Linux 概略 Linux全般 シェルスクリプト 一覧 玄箱PRO固有 ディレクトリ エラー /etc コマンド RESETボタン ディストリビューション 起動メッセージ 外部接続 tftp 開発用Linux フラッシュメモリ オプション 終了メッセージ U-boot /dev /var /usr miconapl /bin /sbin /proc スペック プログラム 「玄箱PRO」関連ブログ #technorati
https://w.atwiki.jp/aerocats/pages/42.html
SATAとは「Serial Advanced Technology Attachment」の略で"シリアルATA"と訳される。 語句の成り立ちから考えると「S-ATA」と表記する方が正しいかもしれない。 ATAとは従来からあるPCとHDD間のインターフェースのことで、ここではあまり述べない。 玄箱PROへのSATA2 玄箱PROに接続できるHDDの規格としてこのSATAがあげられるが、まれに「SATA2のHDDは取り付けられないのか」といった質問がある。 SATA2とはSATAの上位規格であり、具体的には転送速度があがりNCQ(ネイティブコマンドキューイング)といった機能に対応している。 これらSATA、SATA2ともに完全上位互換となっており、SATA2HDDを玄箱PROに接続してもSATAとして動作するので、「取り付けられるか」という質問には「取り付けられる」となる。 しかしその場合の動作はSATAモードであり、SATA2の恩恵にはあずかれない。
https://w.atwiki.jp/aerocats/pages/43.html
主にLinuxで扱われる言葉だが、Linuxカーネル?とアプリケーションなどをパッケージして配布されるものを指す。 より詳細には、GNU/Linuxオペレーティングシステムを容易に導入できるようにした配布物をLinuxディストリビューションと呼ぶ。 本来はLinuxカーネル?を「Linux」と呼ぶため、これらディストリビューションを「ディストリ」「OS」などと呼ぶ。 つまり、自分の環境を説明するのに「Linuxを使っていてこういう不具合がある、どうすればいいだろうか」といった質問はあまりに抽象的であり誰にも答えることができないだろう。 玄箱PROでのディストリビューション 書籍やネットで玄箱PROへの導入可能なディストリビューションについて、今では様々な報告がある。 結局はARM?というCPUアーキテクチャーに対応していることが重要なのだが、ディストリビューション側の努力もあり、対応状況は日々変化している。 現在のところ以下のディストリビューションが玄箱PROに導入可能だ。 ディストリビューション名 系統 標準パッケージ管理システム 導入方法 Debian GNU/Linux Debian系 apt Debian化の方法 FedoraCore6 Redhat系 yum FedoraCore6化の方法 Fedora8 Redhat系 yum Fedora8化の方法 GentooLinux - Portage GentooLinux化の方法 ディストリビューションの特長 ディストリビューションが様々に存在する理由は、それぞれの配布者がそれぞれの利便性を盛り込むためであり、必然的にディストリビューションごとに突出したメリット・デメリットがある。 Debianとは Fedoraとは Gentooとは
https://w.atwiki.jp/aerocats/pages/25.html
wgetコマンド?の際、玄箱PROが外部と未接続の場合に発生する。
https://w.atwiki.jp/aerocats/pages/20.html
玄箱PRO関連で「標準Linux」と言った場合、特に指定がないかぎりは工場出荷状態のままの状態を指す。 MontaVista Linuxという組み込みに特化したディストリビューションを採用している。 標準Linuxの特長 玄箱PROの標準Linuxに見られるいくつかの特長とは NANDフラッシュ領域で作動し、HDD未装着でも問題はない。 samba?、swat?、httpd?、telnetdなどがインストールされている。 gccなどの開発環境は整っていない。 miconapl、nvramなどのBuffalo独自ソフトがインストールされている。 BusyBoxのinitのためランレベルの概念はない。 などがある。 ハックを目的とせずNASとして使用する限り、この標準Linuxのままで支障はないが、何らかのビルドを必要とした場合、附属CD-ROMに収められた開発用LinuxをHDDに展開する必要がある。 標準Linuxのメリット HDDに依存しない動作のため、省電力で静音性の高い環境で作業ができる。 HDD未装着であれば、背面のファンを数えず「ゼロスピンドル」を実現している。 標準Linuxのデメリット 現実にHDD未装着では大したことはなにもできない。 なおかつ、書き換え回数に制限(セクターあたり約10万回)のあるフラッシュメモリを頻繁に使用する、という点も好ましくない。 開発環境がないため、簡単なビルドにすら事欠く。
https://w.atwiki.jp/anthony/pages/27.html
玄箱PROパッチ適用 私のようにswat不具合を抱えた玄箱PROを持っている場合は必要になる作業です。ここではTFTPを使用したパッチ適用(ファームウェア・バージョンアップ)です。これもシリアルコンソールなしにはできません。 TFTPサーバー Poor TFTP Server for WIN32をダウンロードして展開 ptftp32.exeを実行 Timeoutは60秒に設定しておく 同じディレクトリにinitrd.buffaloとuImage.buffaloを配置しておく シリアルコンソールからリブートする KUROBOX-PRO ~# reboot PCのアドレスが192.168.1.4でさっき玄箱PROをブートしたときのアドレスが192.168.1.12だったのでserveripにはPCのアドレス、ipaddrには玄箱PROのアドレスを設定 Marvell setenv serverip 192.168.1.4 Marvell setenv ipaddr 192.168.1.12 Marvell tftp $(default_kernel_addr) $(kernel) Using egiga0 device TFTP from server 192.168.1.4; our IP address is 192.168.1.12 Filename uImage.buffalo . Load address 0x100000 Loading ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############### done Bytes transferred = 1736612 (1a7fa4 hex) Marvell setenv bootargs $(bootargs_base) $(bootargs_root) rw initrd=0x02000040,20M panic=5 $(buffalo_ver) Marvell bootm $(default_kernel_addr) $(default_initrd_addr) stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02000000 ... Image Name initrd Created 2007-04-10 13 46 52 UTC Image Type ARM Linux RAMDisk Image (gzip compressed) Data Size 19286692 Bytes = 18.4 MB Load Address 00000000 Entry Point 00000000 Verifying Checksum ... Bad Data CRC bootm fail. system_not_found Using egiga0 device TFTP from server 192.168.1.4; our IP address is 192.168.1.12 Filename uImage.buffalo . Load address 0x100000 Loading ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############### done Bytes transferred = 1736612 (1a7fa4 hex) Using egiga0 device TFTP from server 192.168.1.4; our IP address is 192.168.1.12 Filename initrd.buffalo . Load address 0x2000000 Loading ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############################################################## done Bytes transferred = 19286756 (1264ae4 hex) stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02000000 ... Image Name initrd Created 2007-04-10 13 46 52 UTC Image Type ARM Linux RAMDisk Image (gzip compressed) Data Size 19286692 Bytes = 18.4 MB Load Address 00000000 Entry Point 00000000 Verifying Checksum ... OK Starting kernel ... arg console=ttyS0,115200 root=/dev/sda2 rw panic=5 rw initrd=0x02000040,20M panic=5 BOOTVER=1.091 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux........................................................ ......................................................... done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/sda2 rw panic=5 rw initrd=0x02000040,20M panic=5 BOOTVER=1.091 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 105600KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok checking if image is initramfs...it isn t (no cpio magic); looks like an initrd Freeing initrd memory 20480K NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_ BOARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c3403bc0 Marvell USB EHCI Host controller #1 c3403a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Hitachi Model HDT725050VLA360 Rev V56O Type Direct-Access ANSI SCSI revision 03 SCSI device sda 976773168 512-byte hdwr sectors (500108 MB) SCSI device sda drive cache write back SCSI device sda 976773168 512-byte hdwr sectors (500108 MB) SCSI device sda drive cache write back sda sda1 sda2 sda3 sda4 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 Debug nand_scan mtd- oobblock=0x00000800 Debug nand_scan mtd- oobsize=0x00000040 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3 V 8-bit) Scanning device for bad blocks Bad eraseblock 854 at 0x06ac0000 Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus numb er 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus num ber 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 1 0 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 308.800 MB/sec 8regs 217.600 MB/sec 32regs 252.400 MB/sec raid5 using function arm4regs (308.800 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. RAMDISK Compressed image found at block 0 VFS Mounted root (ext2 filesystem). ---- in linuxrc --- proc mount success libbuffalo mount success -RamdiskRoot- -- linuxrc finished. -- Freeing init memory 112K init started BusyBox v1.2.2 (2007.01.15-11 18+0000) multi-call binary Starting pid 242, console /dev/ttyS0 /etc/init.d/rcS --- rcStart (initrd) --- ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] remounting rootfs ... [Success] mounting all devices ... [Success] --MountNandDevice-- ===== Starting Kevent.sh ===== [Success] ===== Starting networking.sh ===== Deconfiguration network interface lo eth0 killall dhcpcd no process killed create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info new dhcpcd.exe interface eth0 has been configured with new IP=192.168.1.12 hostname is setted to KUROBOX-PRO [Success] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 start at debug mode clientUtil_server Ver.1.01 listen device name = eth0 [Success] Starting pid 484, console /dev/ttyS0 /sbin/getty KUROBOX-PRO login } ログインして更新コマンドを実行する実行 ~ # update_mtd.sh all ***** Cleaning and collect badlist /dev/mtd1 ***** ***** copying /boot/uImage.buffalo to /dev/mtd1 ***** ***** Cleaning /dev/mtdchar2 ***** ***** Writing /boot/nandrootfs.jffs2 to /dev/mtdchar2 ***** ***** copying /boot/u-boot.bin to /dev/mtd0 ***** 480+1 records in 480+1 records out ***** Cleaning /dev/mtdchar3 ***** Done. ~ # リブートする ~ # reboot Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Apr 10 2007 - 18 10 08) Marvell version 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M) Done NAND 256 MB Soc 88F5182 A2 CPU ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0 host mode USB 1 host mode PCI 0 PCI Express Root Complex Interface PCI 1 Conventional PCI, speed = 33000000 Net egiga0 [PRIME] Using 88E1118 phy Found boot image hit any key to switch tftp boot. Hit any key to stop autoboot 0 system_bootend Hit any key to stop autoboot 0 Loading from device 0 NULL at 0xfa000000 (offset 0x20000) Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 stop_sound ## Booting image at 00100000 ... Image Name Linux-2.6.12.6-arm1 Created 2007-04-10 13 45 13 UTC Image Type ARM Linux Kernel Image (uncompressed) Data Size 1736548 Bytes = 1.7 MB Load Address 00008000 Entry Point 00008000 Verifying Checksum ... OK OK Starting kernel ... arg console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BOOTVER=1.091 CONFIG_KUROBOX_PLATFORM CONFIG_KUROBOX_KUROBOX --- Uncompressing Linux........................................................ ......................................................... done, booting the kernel. Linux version 2.6.12.6-arm1 (root@dev-hara) (gcc version 3.4.4 (release) (C odeSourcery ARM 2005q3-2)) #27 Tue Apr 10 22 47 16 JST 2007 CPU ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0 D VIVT write-back cache CPU0 I cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0 D cache 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 250000000, Tclk = 166664740 Memory policy ECC disabled, Data cache writeback Built 1 zonelists Kernel command line console=ttyS0,115200 root=/dev/mtdblock2 rw panic=5 BO OTVER=1.091 PID hash table entries 1024 (order 10, 16384 bytes) Console colour dummy device 80x30 Dentry cache hash table entries 32768 (order 5, 131072 bytes) Inode-cache hash table entries 16384 (order 4, 65536 bytes) Memory 128MB 0MB 0MB 0MB = 128MB total Memory 126208KB available (3037K code, 426K data, 112K init) Mount-cache hash table entries 512 CPU Testing write buffer coherency ok NET Registered protocol family 16 serial_initialize_ttyS1 (Debug) ttyS1 is initialized. config_device_cs Error Unknown board CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 128MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PCI0_MEM ....base e8000000, size 128MB PCI0_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB DEVICE_CS0 ....base fa000000, size 2MB DEVICE_CS1 ....base f4000000, size 32MB DEVICE_CS2 ....base fa800000, size 1MB DEV_BOOCS ....base ff800000, size 8MB CRYPTO ENG ....no such Flash bankwidth 1, base ff800000, size 400000 KUROBOX FLASH size 4096[KB] Marvell Development Board (LSP Version 1.10.3.patch5_DB_NAS)-- KUROBOX_BO ARD_KUROBOX Soc 88F5182 A2 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0 c04e4b00 Marvell USB EHCI Host controller #1 c04e4a40 pexBarOverlapDetect winNum 2 overlap current 0 mvPexInit Warning Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI bus0 Fast back to back transfers enabled PCI bus1 Fast back to back transfers enabled SCSI subsystem initialized usbcore registered new driver usbfs usbcore registered new driver hub Use the XOR engines (offloading) for enhancing the following functions o RAID 5 Xor calculation o kernel memcpy o kenrel memzero o copy user to/from kernel buffers Number of XOR engines to use 2 cesadev_init(c00122e4) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. SGI XFS with no debug enabled Serial 8250/16550 driver $Revision 1.90 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A ttyS1 at MMIO 0x0 (irq = 4) is a 16550A io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized 3 RAM disks of 32768K size 1024 blocksize loop loaded (max 8 devices) Marvell Gigabit Ethernet Driver egiga o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (10) eth0 Intergrated Sata device found scsi0 Marvell SCSI to SATA adapter scsi1 Marvell SCSI to SATA adapter Vendor Hitachi Model HDT725050VLA360 Rev V56O Type Direct-Access ANSI SCSI revision 03 SCSI device sda 976773168 512-byte hdwr sectors (500108 MB) SCSI device sda drive cache write back SCSI device sda 976773168 512-byte hdwr sectors (500108 MB) SCSI device sda drive cache write back sda sda1 sda2 sda3 sda4 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 physmap flash device 400000 at ff800000 Found SST 39LF020 phys_mapped_flash Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips 1 cfi_cmdset_0002 Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available Debug nand_scan nand_flash_ids[i].pagesize is exist Debug nand_scan mtd- erasesize=0x00020000 Debug nand_scan mtd- oobblock=0x00000800 Debug nand_scan mtd- oobsize=0x00000040 NAND device Manufacturer ID 0x20, Chip ID 0xda (ST Micro NAND 256MiB 3,3 V 8-bit) Scanning device for bad blocks Bad eraseblock 854 at 0x06ac0000 Using static partition definition Creating 3 MTD partitions on "nand_mtd" 0x00000000-0x00400000 "uImage" 0x00400000-0x04400000 "rootfs" 0x04400000-0x10000000 "extra" usbmon debugs is not available ehci_platform ehci_platform.4523 EHCI Host Controller ehci_platform ehci_platform.4523 new USB bus registered, assigned bus numb er 1 ehci_platform ehci_platform.4523 irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523 park 0 ehci_platform ehci_platform.4523 USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0 1.0 USB hub found hub 1-0 1.0 1 port detected ehci_platform ehci_platform.16781 EHCI Host Controller ehci_platform ehci_platform.16781 new USB bus registered, assigned bus num ber 2 ehci_platform ehci_platform.16781 irq 12, io mem 0x00000000 ehci_platform ehci_platform.16781 park 0 ehci_platform ehci_platform.16781 USB 0.0 initialized, EHCI 1.00, driver 1 0 Dec 2004 hub 2-0 1.0 USB hub found hub 2-0 1.0 1 port detected USB Universal Host Controller Interface driver v2.2 Initializing USB Mass Storage driver... usbcore registered new driver usb-storage USB Mass Storage support registered. usbcore registered new driver usbhid drivers/usb/input/hid-core.c v2.01 USB HID core driver mice PS/2 mouse device common for all mice md raid0 personality registered as nr 2 md raid1 personality registered as nr 3 md raid5 personality registered as nr 4 raid5 measuring checksumming speed arm4regs 304.000 MB/sec 8regs 215.200 MB/sec 32regs 249.200 MB/sec raid5 using function arm4regs (304.000 MB/sec) md md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 Buffalo Platform Linux Driver(Light) 0.01 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON V2 (C) BUFFALO INC. V.1.00 installed. NET Registered protocol family 2 IP routing cache hash table of 1024 buckets, 8Kbytes TCP established hash table entries 8192 (order 4, 65536 bytes) TCP bind hash table entries 8192 (order 3, 32768 bytes) TCP Hash tables configured (established 8192 bind 8192) NET Registered protocol family 1 NET Registered protocol family 17 md Autodetecting RAID arrays. md autorun ... md ... autorun DONE. Empty flash at 0x00df85f8 ends at 0x00df8800 VFS Mounted root (jffs2 filesystem). Freeing init memory 112K --- rcStart (NANDroot) --- ===== Starting MountSystemFolders ===== mounting procfs ... [Success] mounting sysfs ... [Success] mouting usbfs ... [Success] remouting rootfs ... [Success] mounting all devices ... [Success] ===== Starting checkroot.sh ===== rm /var/lock/perfmon is a directory rm /var/lock/printing is a directory rm /var/lock/subsys is a directory [Success] ===== Starting Kevent.sh ===== [Success] ===== Starting mount_share.sh ===== Mounting /dev/sda4 on /mnt/disk1 as a xfs file system. XFS mounting filesystem sda4 Starting XFS recovery on filesystem sda4 (dev sda4) Ending XFS recovery on filesystem sda4 (dev sda4) Success. Mounting /dev/mtd3 on /mnt/mtd as a jffs2 file system. Success. [Success] ===== Starting sethostname.sh ===== hostname is setted to KUROBOX-PRO [Success] ===== Starting networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall dhcpcd no process killed route SIOC[ADD|DEL]RT No such process Configuration network interface lo eth0 requesting DHCP tout=30[s] eth0 link down eth0 link up 5 , full duplex 5 , speed 100 Mbps 5 /etc/dhcpc/dhcpcd.exe /etc/dhcpc/dhcpcd-eth0.info up dhcpcd.exe interface eth0 has been configured with old IP=192.168.1.12 hostname is setted to KUROBOX-PRO [Success] ===== Starting httpd.sh ===== [Success] ===== Starting telnet.sh ===== [Success] ===== Starting inetd.sh ===== [Success] ===== Starting smb.sh ===== $Starting SMB services $Starting NMB services [Success] ===== Starting clientUtil_servd.sh ===== Starting clientUtil_server starting on eth0 [Success] ===== Starting bootcomplete.sh ===== [Success] ===== Starting FanController.sh ===== [Success] ===== Starting boss.sh ===== ... .. -~~(~~ .~ shDBDhz+(-. .~+sDDBNBDhhszDBNNNNBNNNBDs - ~sBNNNNNNNNNNNNNNNNNNNNNNNNNBs -=DNNBNNNNNNNNNNNNNNNNNBNNNNNNNNBz .~zNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNz~ ~hBNNNNBNNNNNNNNNNNNNNNNNNNNNNNNNNNNNND+ (hNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNBs- .~zNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNBNNBNNNNNNBs ~sBNNNNNNNNNNNNNNNNNNNNNNNNNNNNBNNNNNNNNNNNNNz (+DNNNNNNNNNNNNNNNNNNNNNNDzNNNNNhzDNNBNNNNNNNNBs (sNNNNNNNNNNNNNNNNNNNNNNB=~hNNNN=~(sDNNNNNNNNNND (+DNNNNNNNNNNNNNNNNNNNNNNs .=NNNNz- (zDNNNNNNNNNz ~=BNNNNNNNNNNNNNNNNNNNNND- .=BNNNN . .(hNNNNNNNNB ~sNNNNNNNNNNNNNNNNNNNNND+. .+BNNNN+ ~sBNNNNNNN (zNNNNNNNNNNNNNNNNNNNNND ..+BNBNB=- .+BNNNNNNh (zNNNNNNNNNNNNNNNNNNNBB= . hNBBNs+- +DNNNBND (sNNNNNNNNNNNNNNNNNNNND( -DhDBN+ - . =NNNNNB ~+DNNBNNNNNNNNNNNNNNNNz =D=Dhh+( . ~DBNNNB ~(sNNNNNNNNNNNNNNNNNNNz. -hs(zz+ ( . .=NNNNN ~=NNBBBBNNNNNNNNNNNNB= ==-=+s((~. .~BNNNB ~=Nhs +++hNNNNNNNNBz - .~=-.s(+-(- hBNND =Ds+hz( ~hNNNNNNND+ ..-+ .-((( ~ ... -hNNNNDs ~+z(BN=. . BNNNNBhhDD=+ ~. ~-=shBBDhz+( -sBNNNBBNBz ~(=z(BD- ~~hBNNNs~-( zDDs+~(shzssszDBNDh= sBNNNNNNNBN ~~+s z=.-zh~sNNND . . zhhh==shDBNNNNNNNBDDNNNNNNNNNh ~~ ss+ .zBBs~zND+ ..-+zDBNNNNNNNNNNNhzNNNNNNNNND+ ~~(=h +DBz-sBs~ . (BBNNNNNNNNNz- BBNNBNNND= ~(~ zss(( (z sD+ ~DNNNNNNNNNz~ sNNNNNNDs ~(=Ds= ...-(h . . .. BNNNNNNNNz~ -hNNNBh ~(hNs(. =- .=BNNNNNBNs- .(hs== BNz~ . .(hBNNBDz .~ - -hNNh(. .. . (++~ . - . hBNB+ -+( . .- . zDNz( . ~+ - .. . .-. ..~(-. . . .~+(. .. -- . . . + ~ ~. ..... .- . ---(~~~( ~. .. . .((--- -~~(~ . . +s=(- -(+. Let s start a KURO-BOX! .... .(hBDzDD=. and have a fun time... .. .. . sDh+. . .. . ..-- . .. .. ... ....... . . .. .. - .. ... [Success] KUROUTOSHIKOU KUROBOX Series KUROBOX/PRO(KOSHO) KUROBOX-PRO login 最終更新日:2007-05-28
https://w.atwiki.jp/aerocats/pages/63.html
/varとは /varの構成 標準Linuxのvarディレクトリは/mnt/ram/varのシンボリックリンクとなっている。 つまりRAM上に作られているため、玄箱PROの電源を切るたびに内容は消えてしまうということだ。 実際に標準Linuxではどのような構成となっているか。 ファイルもしくはディレクトリ名 設定内容 empty lib lock log run spool tmp
https://w.atwiki.jp/aerocats/pages/41.html
NASとはNetwork Attached Storageの略で「ネットワーク接続ストレージ」と訳され「ネットワーク上の保存装置」という意味だ。 コンピューターに接続された外付けHDDは、接続元のコンピューターの電源が入っていないと扱えないがNASは独立した機器なので同一ネットワーク内であればどこからでも使える利点がある。 基本的にはコントローラー部分とHDDをあわせたものをNASと呼ぶ。 玄箱PROは初期状態でこれらの機能を有している。
https://w.atwiki.jp/aerocats/pages/14.html
/以下にあるディレクトリやファイル群を列記する。 ls -al lsコマンド?での出力は以下。 / # ls -al drwxr-xr-x 18 root root 0 Dec 24 14 28 . drwxr-xr-x 18 root root 0 Dec 24 14 28 .. drwxr-xr-x 2 root root 0 Apr 10 2007 bin drwxr-xr-x 2 root root 0 Jan 17 2007 boot drwxr-xr-x 3 root root 0 Jun 17 2004 dev drwxr-xr-x 8 root root 0 Dec 24 14 28 etc drwxrwxrwx 2 root root 0 Oct 24 1983 home drwxr-xr-x 2 root root 0 Oct 24 1983 initrd drwxr-xr-x 4 root root 0 Oct 24 1983 lib drwxr-xr-x 10 root root 0 Dec 24 14 28 mnt dr-xr-xr-x 45 root root 0 Jan 1 1970 proc drwx------ 3 root root 0 Oct 24 1983 root drwxr-xr-x 2 root root 0 Dec 21 2006 rootfs drwxr-xr-x 2 root root 0 Apr 10 2007 sbin drwxr-xr-x 9 root root 0 Jan 1 1970 sys lrwxrwxrwx 1 root root 12 Dec 24 14 28 tmp - /mnt/ram/tmp drwxr-xr-x 8 root root 0 Feb 3 2007 usr lrwxrwxrwx 1 root root 12 Dec 24 14 28 var - /mnt/ram/var drw-r--r-- 3 root root 0 Feb 9 2007 www /tmpと/varはそれぞれ/mnt/ram/tmpと/mnt/ram/varのシンボリックリンク?となっている模様。 /直下のディレクトリ /直下のディレクトリはlsコマンド?で示したが、各役割は次の通り。 bin/ 一般ユーザー権限で実行できる基本コマンド boot/ Linux起動時に必要なファイル dev/ デバイス・ファイル etc/ 原則、システム管理用のファイルの保存先。システムや各種ソフトウェアの設定はこの中のテキストファイルを編集することで実現する home/ ユーザーのホーム・ディレクトリ initrd/ lib/ /binや/sbinに置かれた実行ファイルの共有ライブラリ?。lib.so.*など mnt/ ファイルシステムの一時的なマウントポイント proc/ カーネルに関わるさまざまな情報を取得できるファイルシステム。/procディレクトリ以下にはさまざまなディレクトリ、ファイルがあり、それらファイルを参照することで、カーネル?の情報を見ることができる。/procファイルシステムは、カーネル?情報をファイルとして扱えるようにするもので、ファイルの実体はない。カーネル?が認識したハードウェア情報もここから参照できる。※1 root/ rootユーザーのホーム・ディレクトリ rootfs/ sbin/ システム管理用の基本コマンド sys/ tmp/ /mnt/ram/tmpのシンボリックリンク?。作業用の一時的なディレクトリ usr/ ユーザーが共有する読み出し専用データを置く var/ /mnt/ram/varのシンボリックリンク?。いくつかの例外を除き、基本的に設定ファイルは存在しない。ユーザーよりもシステムやソフトウェア自身が書き込むファイルが数多くある。中でも/var/logディレクトリ以下に作成されるファイルの内容を定期的にチェックすることは管理者として重要な作業となる www/ ※引用「日経Linux2007年5月号(58ページ)」(日経BP社) FHS 玄箱PROの標準LinuxはFHSの定めた規格には従っていない。 FHS3.2 Fedora7 Debian GNU/Linux 4.0 玄箱PRO(標準Linux) bin bin bin bin boot boot boot boot dev dev dev dev etc etc etc etc (home) home home home - - initrd initrd lib lib lib lib - lost+found lost+found - media media media - - misc - - mnt mnt mnt mnt - net - - opt opt opt opt - proc proc proc (root) root root root sbin sbin sbin sbin - selinux - - srv srv srv - - sys sys sys tmp tmp tmp tmp usr usr usr usr var var var var ※引用「日経Linux2007年5月号(58ページ)」(日経BP社) ※1引用:「ITmedia エンタープライズ:Linuxハードウェア認識の基礎 (1/3)」より